Skip to content

fix: supports empty message object #2369

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 3, 2024

Conversation

danzhaaspaypal
Copy link
Contributor

Description

Ensures that an empty message object input (e.g. message: {}) results in a message render by populating message props align, position, and color with computed default values.

Why are we making these changes? Include references to any related Jira tasks or GitHub Issues

Reproduction Steps (if applicable)

Screenshots (if applicable)

Dependent Changes (if applicable)

Groups who should review (if applicable)

❤️ Thank you!

Copy link

codecov bot commented Mar 29, 2024

Codecov Report

Attention: Patch coverage is 36.50794% with 40 lines in your changes are missing coverage. Please review.

Project coverage is 51.75%. Comparing base (5d93bc6) to head (de2b1cd).

Files Patch % Lines
src/zoid/buttons/component.jsx 11.11% 16 Missing ⚠️
src/ui/buttons/props.js 39.13% 14 Missing ⚠️
src/ui/buttons/util.js 50.00% 8 Missing ⚠️
src/ui/buttons/buttons.jsx 66.66% 2 Missing ⚠️
Additional details and impacted files
@@                      Coverage Diff                      @@
##           feature/dynamic-messaging    #2369      +/-   ##
=============================================================
- Coverage                      51.82%   51.75%   -0.08%     
=============================================================
  Files                            149      149              
  Lines                          12322    12338      +16     
  Branches                         700      703       +3     
=============================================================
- Hits                            6386     6385       -1     
- Misses                          5831     5848      +17     
  Partials                         105      105              
Flag Coverage Δ
jest 31.08% <52.94%> (-0.04%) ⬇️
karma 54.11% <100.00%> (+0.02%) ⬆️
vitest 45.53% <15.87%> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danzhaaspaypal danzhaaspaypal marked this pull request as ready for review March 29, 2024 18:05
@danzhaaspaypal danzhaaspaypal requested a review from a team as a code owner March 29, 2024 18:05
@danzhaaspaypal
Copy link
Contributor Author

@wsbrunson Please review at your convenience, thanks!

showPoweredBy: boolean,
layout: string,
|};
export function calculateShowPoweredBy(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@Seavenly Seavenly merged commit 3435784 into feature/dynamic-messaging Apr 3, 2024
2 of 5 checks passed
@Seavenly Seavenly deleted the hotfix/msg-obj-empty1 branch April 3, 2024 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants